<html>
<head>
    <meta charset="utf-8">
    <title>AngularJS 路由实例</title>
</head>
<body ng-app='routingDemoApp'>


<script src="../../js/lib/bower_components/angular/angular.js" type="text/javascript"></script>
<script src="http://apps.bdimg.com/libs/angular-route/1.3.13/angular-route.js"></script>
<script src="../../js/ng_test.js" type="text/javascript"></script>
<script src="../../js/lib/bower_components/ui-bootstrap-tpls-2.4.0.js"></script>

<script>
    angular.module('routingDemoApp',['ngRoute'])
            .config(['$routeProvider', function($routeProvider){
                $routeProvider
                        .when('/',{templateUrl:'ng_first.html'})
                        .when('/remote',{templateUrl:'ng_remote.html', controller:romotes})
                        .when('/printers',{template:'这是打印机页面'})
                        .otherwise({redirectTo:'/'});
            }]);
</script>

<ul style="text-align: center">
    <li><a href="#/">首页</a></li>
    <li><a href="#/remote">Remote列表</a></li>
</ul>
<div ng-view style="text-align: center"></div>

</body>


</html>